<%@page import="com.glowdayz.glowmee.dao.RegisterDAO"%>
<%@ page language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@page import="com.glowdayz.common.DBHandler"%>
<%@page import="com.glowdayz.common.ApiHandler"%>
<%@page import="com.glowdayz.common.ApiHandler.XmlData"%>
<%@page import="java.util.ArrayList"%>
<%
	DBHandler.getInstance().connect();

	ApiHandler web = new ApiHandler(request, out, "JSPglowmee");
	
	int idRegister = web.getInt("idRegister");
	int idPouch = web.getInt("idPouch");
	
	int count = DBHandler.getInstance().getCount("wishuserpouchmapping", "*", "idRegister=" + idRegister + " AND idPouch=" + idPouch);
	
	if (count > 0) {
		DBHandler.getInstance().disconnect();
		ArrayList<XmlData> list = new ArrayList<XmlData>();
		web.result("SUCCESS", null);
		return;
	} else {
		DBHandler.getInstance().disconnect();
		web.result(null, null);
		return;
	}
	
%>